// generate pseudo assembly code or processes
Vectr * getByteCodeForScript(char * commandScript)
{
	Vectr * instructions = new Vectr();

	// load the file
	ifstream is(commandScript);

	char wordBuffer[30];
	char code;

	//cout << "running script reader..." << endl;

	while(is.good())
	{
		// read one word at a time
		is >> wordBuffer;

		// cout << "[" << wordBuffer << "]" << endl;

		for(int i = 0; scriptLookupTable[i].name; ++i)
		{
			if(!strcmp(wordBuffer, scriptLookupTable[i].name))
			{
				// put the code in the vectr
				instructions->add((void*)i);

				// in the case of the special 'icon keyword'
				if(!strcmp("icon", scriptLookupTable[i].name))
				{
					// read an additional parameter, and put it down in the byte code.
					int parameter;
					is >> parameter;
					instructions->add((void*)parameter);
				}
			}
		}
	}
	// once there are not more words to read, 
	// close the file
	is.close();

	//cout << "Script reader done..." << endl;
		//return the vectr

	for(int i = 0; i < instructions->getSize(); ++i)
	{
		cout << (char)instructions->get(i) << " ";
	}
	cout << endl;
	return instructions;
}